//
//  JLFlutterPluginOtaManager.h
//  flutter_jl_bluetooth_plugin
//
//  Created by 凌煊峰 on 2021/7/28.
//

#import <Foundation/Foundation.h>
#import <Flutter/Flutter.h>

#import <JL_BLEKit/JL_BLEKit.h>
#import "BLEManager.h"
#import "DeviceEntity.h"

NS_ASSUME_NONNULL_BEGIN

@interface JLFlutterPluginOtaManager : NSObject

@property (strong, nonatomic, nullable) FlutterEventSink eventSink;
@property (strong, nonatomic) NSString *otaUpgradeFileDocPath;
@property (strong, nonatomic) NSString *selectOtaFilePath;
@property (strong, nonatomic, readonly) NSArray<NSString *> *otaFileArray;

@property (weak,nonatomic) BLEManager *mBLEManager;

+ (instancetype)sharedInstance;
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;

/**
 *  获取ble设备信息
 */
- (void)getBleDeviceInfoWithStartOtaUpgrade:(BOOL)startOtaUpgrade;

@end

NS_ASSUME_NONNULL_END
